package com.aspose.cells.a.d.a;

import java.awt.Dimension;
import java.awt.Rectangle;
import java.io.IOException;

public class ze {
   private Rectangle a;
   private Rectangle b;
   private String c;
   private int d;
   private int e;
   private int f;
   private int g;
   private int h;
   private String i;
   private int j;
   private Dimension k;
   private Dimension l;
   private Dimension m;
   private boolean n;

   public ze(Rectangle var1, int var2, int var3, int var4, int var5, int var6, Dimension var7, Dimension var8) {
      this.a = var1;
      this.l = var8;
      double var9 = (double)var8.width / (double)var7.width;
      double var11 = (double)var8.height / (double)var7.height;
      this.b = new Rectangle((int)((double)(var1.x * 100) * var9), (int)((double)(var1.y * 100) * var11), (int)((double)(var1.width * 100) * var9), (int)((double)(var1.height * 100) * var11));
      this.c = " EMF";
      this.d = var2;
      this.e = var3;
      this.f = var4;
      this.g = var5;
      this.h = var6;
      this.i = "Aspose.Cells";
      this.j = 0;
      this.k = var7;
      this.n = false;
      this.m = new Dimension(var8.width * 1000, var8.height * 1000);
   }

   public void a(zb var1) throws IOException {
      int var2 = var1.f();
      int var3 = (var2 - this.a() % var2) % var2;
      int var4 = this.a() + var3;
      var1.b(1);
      var1.b(var4);
      var1.a(this.a);
      var1.a(this.b);
      var1.b(this.c.getBytes());
      var1.b(this.d << 16 | this.e);
      var1.b(var4 + this.f);
      var1.b(this.g);
      var1.c(this.h);
      var1.c(0);
      var1.b(this.i.length());
      var1.b(108);
      var1.b(this.j);
      var1.a(this.k);
      var1.a(this.l);
      var1.b(0);
      var1.b(0);
      var1.c(this.n);
      var1.a(this.m);
      var1.a(this.i);

      for(int var5 = 0; var5 < var3; ++var5) {
         var1.write(0);
      }

   }

   public int a() {
      return 108 + 2 * this.i.length();
   }
}
